package com.ruoyi.project.jiaqin.followmember.mapper;

import com.ruoyi.project.jiaqin.followmember.domain.JiaqinFollowMember;

import java.util.List;

/**
 * 用户关注Mapper接口
 *
 * @author admin
 * @date 2021-01-04
 */
public interface JiaqinFollowMemberMapper
{
    /**
     * 查询用户关注
     *
     * @param id 用户关注ID
     * @return 用户关注
     */
    public JiaqinFollowMember selectJiaqinFollowMemberById(String id);
    public List<JiaqinFollowMember> selectJiaqinFollowMemberByMemberId(String memberId);
    public JiaqinFollowMember selectJiaqinFollowMemberByMemberIdAndToMemberId(String memberId,String toMemberId);
    /**
     * 查询用户关注列表
     *
     * @param jiaqinFollowMember 用户关注
     * @return 用户关注集合
     */
    public List<JiaqinFollowMember> selectJiaqinFollowMemberList(JiaqinFollowMember jiaqinFollowMember);

    /**
     * 新增用户关注
     *
     * @param jiaqinFollowMember 用户关注
     * @return 结果
     */
    public int insertJiaqinFollowMember(JiaqinFollowMember jiaqinFollowMember);

    /**
     * 修改用户关注
     *
     * @param jiaqinFollowMember 用户关注
     * @return 结果
     */
    public int updateJiaqinFollowMember(JiaqinFollowMember jiaqinFollowMember);

    /**
     * 删除用户关注
     *
     * @param id 用户关注ID
     * @return 结果
     */
    public int deleteJiaqinFollowMemberById(String id);

    /**
     * 批量删除用户关注
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteJiaqinFollowMemberByIds(String[] ids);

    public List<JiaqinFollowMember> getMyFans(String memberId);
}
